//package com.Shoping.listener;
//
//import com.mysql.cj.jdbc.AbandonedConnectionCleanupThread;
//
//import javax.servlet.ServletContextEvent;
//import javax.servlet.ServletContextListener;
//import javax.servlet.annotation.WebListener;
//
//@WebListener(value = "/*")
//public class AllListener implements ServletContextListener {
//
//    @Override
//    public void contextDestroyed(ServletContextEvent sce) {
//        System.out.println("关闭");
//        AbandonedConnectionCleanupThread.uncheckedShutdown();
//        ServletContextListener.super.contextDestroyed(sce);
//    }
//
//    @Override
//    public void contextInitialized(ServletContextEvent sce) {
//        System.out.println("开启");
//        ServletContextListener.super.contextInitialized(sce);
//    }
//}
